home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr10
/
snr503.zip
/
NOCODES.S
< prev
next >
Wrap
Text File
|
1993-05-30
|
2KB
|
49 lines
\ NOCODES.S
\ demo test table
\ You can test this table by typing:
\ C>snr pentatst.doc con nocodes.s
\ This table will remove all instances of Penta system typesetting codes
\ from a disk file. A Penta system is an old second-generation typesetting
\ composition machine which uses embedded formatting codes. Some modern
\ DTP programs such as Ventura Publisher and Quark Xpress have a similar
\ coding scheme, although not as involved.
\ Of course, this table can be cobbled up to remove typesetting codes
\ for other systems, such as Compugraphic MCS or CCI; you'll need to have
\ a fairly comprehensive knowledge of the typesetting commands for whatever
\ system you choose to process.
[\y\y\n=*ig \ MOST Penta commands begin with a square bracket
\ followed by two alpha characters and a numeric character.
\ Begin global ignore (that is, start ignoring everything
\ until a string that cancels global ignore is encountered
\ in the data stream)
[\y\n=*ig \ Some Penta commands, such as format calls, begin with
\ only one alpha character followed by a numeral. Begin
\ global ignore
]=*ix \ A right square bracket is the end of command;
\ also cancel global ignore
\0d\0a=\0d\0a*ix \ We'll make an end of a line cancel global ignore also
[\y\y= \ Some Penta commands consist only of a single bracket
\ followed by two alpha characters. We'll just ignore them.
[nt\n=<TAB>\p3 \ "next tab" command -- this is explicitly defined so
\ that we don't accidentally throw it away if it's followed
\ by a number.
[nt=<TAB> \ This is different from the one above. (Why? because not
\ all "next tab" commands will be followed by numbers,
\ that's why. And if we don't define it explicitly, it will
\ be thrown out.
[bt\n=\p3 \ same with "begin tab" command. There may be others that
\ fit the same pattern of use, but this is a skeleton table,
\ so they aren't defined here. Add commands as you need to.